package com.java1412.service;

import com.java1412.entity.User;

/**
 * @author java1412
 * @create 2021-07-15 14:10
 */
public interface UserService {

    /**
     * 保存用户
     *
     * @param user
     * @return
     */
    User saveUser(User user);

    /**
     * 根据用户名查询用户
     *
     * @param username
     * @return
     */
    User findByUsername(String username);
}
